from rest_framework import serializers


class ErrorResponseSerializer(serializers.Serializer):
    """
    错误信息响应序列化器
    """

    success = serializers.BooleanField(help_text="操作是否成功")
    error = serializers.CharField(help_text="错误信息")
    status = serializers.IntegerField(help_text="HTTP状态码")
